<section class="content-header">
	<h1>
		{{title}}<small></small>
	</h1>
</section>
<section class="content">
	<div class="box box-default">
		<div class="col-md-12">
			<div class="box-body" ng-controller="logisticsbusinessarea">
				<alertdanger></alertdanger>
				<alertsuccess></alertsuccess>
				<form role="form">
					<div class="box-body">
						<div ng-show=logisticsnameshow class="form-group">
							<label>物流商名称</label> <input maxlength="20" required="required"
								ng-model="lastlogisticsname" class="form-control" type="text"
								readonly>
						</div>
						<div class="form-group" ng-init="findalllogisticsbusiness();">
							<label>选择物流商</label> <select ng-model="logisticsbusiness"
								ng-options="ls.logisticsid as ls.logisticsname for ls in logisticsbusinesss"
								class="form-control select2" style="width: 100%;">
								<option ng－value="-1">--请选择--</option>
							</select>
						</div>
						<div class="form-group">
							<label>标准重量</label> <input maxlength="20" required="required"
								ng-model="normalvalue" class="form-control" type="text"
								placeholder="请输入标准重量" value="">
						</div>
						<div class="form-group">
							<label>续费</label> <input maxlength="20" required="required"
								ng-model="overcost" class="form-control" type="text"
								placeholder="请输入续重" value="">
						</div>
						<div class="form-group">
							<label>续重基准</label> <input maxlength="20" required="required"
								ng-model="overvalue" class="form-control" type="text"
								placeholder="请输入续重基准" value="">
						</div>
						<div class="form-group">
							<label>计费方式</label>
							<div class="control">
								<label> <input type="radio" ng-model="costway"
									ng-value="1" class="flat-red" ng-checked="true">
									按重量&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="costway"
									ng-value="2" class="flat-red"> 按件&nbsp;&nbsp;&nbsp;
								</label>
							</div>
						</div>
						<div class="form-group">
							<button class="btn btn-block btn-default"
								ng-click="addgtparams();">添加参数</button>
						</div>
						<div class="col-md-3" ng-repeat="gt in gtparams">
							<div class="alert alert-info alert-dismissable">
								<button ng-click="remove($index)" type="button" class="close"
									data-dismiss="alert" aria-hidden="true">&times;</button>
								<h4>
									<i class="icon fa fa-info"></i>
								</h4>
								<div class="form-group">
									<label>配送区域</label> <input maxlength="20"
										ng-model="gt.sendarea" class="form-control" type="text"
										placeholder="请输入配送区域">
								</div>
								<div class="form-group">
									<label>标准费用</label> <input maxlength="3"
										ng-model="gt.normalcost" class="form-control" type="text"
										placeholder="请输入标准费用">
								</div>
							</div>
						</div>
						<div class="form-group">
							<label> <input type="radio" ng-model="status"
								ng-value="1" class="flat-red" ng-checked="true"> 启用
							</label> <label> <input type="radio" ng-model="status"
								ng-value="0" class="flat-red"> 禁用
							</label>

						</div>
					</div>
					<div class="box-footer">
						<button ng-show="savebtn.show" type="button"
							class="btn btn-primary" ng-click="save();">保存</button>
						<button ng-show="updatebtn.show" type="button"
							class="btn btn-primary" ng-click="update();">更新</button>
					</div>
				</form>
			</div>
		</div>
		<div class="box-footer"></div>
	</div>
</section>
<script>
$(function(){
	$(".select2").select2();
});
</script>